import java.util.Scanner;
import java.util.Stack;

public class ZiRanShuZhiHe {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int i = sc.nextInt();
        sc.close();
        findAllResult(i);
    }

    private static void findAllResult(int target) {
        Stack<String> res = new Stack<>();
        int count = 0;

        for (int i = 1; i <= target; i++) {
            int p = i;
            int hh = 0;
            StringBuilder sb = new StringBuilder();
            sb.append(target).append("=");
            while (hh < target) {
                hh+=p;
                sb.append(p).append(hh < target ? "+" : "");
                p++;

            }
            if (hh == target) {
                count++;
                res.push(sb.toString());
            }
        }

        while (!res.isEmpty()) {
            System.err.println(res.pop());
        }
        System.err.println("Result:" + count);
    }
}
